<%@ Page StylesheetTheme="Skin1" Language="C#" MasterPageFile="~/admin/AdminMaster.master" AutoEventWireup="true"
 CodeBehind="DictEdit.aspx.cs" Inherits="MLY.admin.DictEdit" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
Filter:
<asp:TextBox runat="server" ID="filterText"></asp:TextBox>
<asp:Button runat="server" Text="Filter" />
<br />
<asp:GridView ID="dictGrid" SkinID="GridViewSkin" runat="server"   HeaderStyle-CssClass="dottedLineRightHeader" HeaderStyle-Height="30"
        DataSourceID="LinqDataSource1" AllowPaging="True" AllowSorting="True"  Width="800"
        AutoGenerateColumns="False" DataKeyNames="DictTerm" PagerSettings-Mode="NumericFirstLast">
    <Columns>
     <asp:CommandField ShowEditButton="true" ButtonType="Image"
      UpdateImageUrl="~/Images/update_icon.png" ItemStyle-Width="50"
       CancelImageUrl="~/Images/Cancel.gif"
      EditImageUrl="~/Images/edit_icon.png" />
        <asp:BoundField DataField="DictTerm" ItemStyle-Width="300"  HeaderStyle-Width="400"
         HeaderText="DictTerm" ReadOnly="True" 
            SortExpression="DictTerm" />
        <asp:BoundField DataField="en" HeaderText="en" SortExpression="en" ItemStyle-Width="50"  />
        <asp:BoundField DataField="he" HeaderText="he" SortExpression="he" ItemStyle-Width="50"  />
        <asp:BoundField DataField="ru" HeaderText="ru" SortExpression="ru" ItemStyle-Width="50"  />
     
    </Columns>

</asp:GridView>
  <asp:LinqDataSource ID="LinqDataSource1" runat="server"  EnableUpdate="true"
                    ContextTypeName="MLY.Dal.lqKbmDataContext" Where="DictTerm.Contains(@DictTerm)" TableName="Dicts">
             <WhereParameters>
                <asp:ControlParameter ControlID="filterText" ConvertEmptyStringToNull="false" Direction="Input"
                 Type="String" PropertyName="Text"  Name="DictTerm"/>
             </WhereParameters>
                </asp:LinqDataSource>
    
</asp:Content>
